package com.ace3l.legal.gwt.domainmodule.gwt;

import com.google.gwt.user.client.rpc.IsSerializable;


/**
 * Created by IntelliJ IDEA.
 * User: ageer
 * Date: Jul 22, 2008
 * Time: 11:12:59 AM
 * To change this template use File | Settings | File Templates.
 */
public class GWTLawFirm implements IsSerializable {
    private GWTUser user;

    private String lawFirmName;
    private String contactFirstName;
    private String contactLastName;
    private String firmAddress1;
    private String firmAddress2;
    private String firmCity;
    private String firmState;
    private String firmZip;
    private String contactPhone;
    private String email;
    private Boolean emailVerified;
//    private List adminNotes = new ArrayList();
    private String lawFirmStatus;

    public GWTUser getUser() {
        return user;
    }

    public void setUser(GWTUser user) {
        this.user = user;
    }

    public String getLawFirmName() {
        return lawFirmName;
    }

    public void setLawFirmName(String lawFirmName) {
        this.lawFirmName = lawFirmName;
    }

    public String getContactFirstName() {
        return contactFirstName;
    }

    public void setContactFirstName(String contactFirstName) {
        this.contactFirstName = contactFirstName;
    }

    public String getContactLastName() {
        return contactLastName;
    }

    public void setContactLastName(String contactLastName) {
        this.contactLastName = contactLastName;
    }

    public String getFirmAddress1() {
        return firmAddress1;
    }

    public void setFirmAddress1(String firmAddress1) {
        this.firmAddress1 = firmAddress1;
    }

    public String getFirmAddress2() {
        return firmAddress2;
    }

    public void setFirmAddress2(String firmAddress2) {
        this.firmAddress2 = firmAddress2;
    }

    public String getFirmCity() {
        return firmCity;
    }

    public void setFirmCity(String firmCity) {
        this.firmCity = firmCity;
    }

    public String getFirmState() {
        return firmState;
    }

    public void setFirmState(String firmState) {
        this.firmState = firmState;
    }

    public String getFirmZip() {
        return firmZip;
    }

    public void setFirmZip(String firmZip) {
        this.firmZip = firmZip;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getEmailVerified() {
        return emailVerified;
    }

    public void setEmailVerified(Boolean emailVerified) {
        this.emailVerified = emailVerified;
    }

    public String getLawFirmStatus() {
        return lawFirmStatus;
    }

    public void setLawFirmStatus(String lawFirmStatus) {
        this.lawFirmStatus = lawFirmStatus;
    }

    public void secureForRole(String role) {
        if (role.equals(GWTRole.STUDENT)) {
            this.user = null;
            this.firmAddress1 = "";
            this.firmAddress2 = "";
            this.firmZip = "";
            this.contactPhone = "";
            this.email = "";
            this.emailVerified = Boolean.FALSE;
            this.lawFirmStatus = "";
        }
    }

}
